<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>成功提交订单-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
</head>

<body>
    <!-- 头部开始 -->
    <include file="Public/header" />
    <!-- 头部结束 -->
    <link rel="stylesheet" href="/Template/pc/kty/Static/css/spfk.css"/>

    <form action="{:U('Home/Payment/getCode')}" method="post" id="cart4_form">
        <div class="savek">
            <h2 class="zfa">商品支付</h2>
            <div class="sptitle">
                <h2>{$order['goods_list'][0]['goods_name']}</h2>
                <p class="xxjs">{$order['goods_list'][0]['goods_remark']}</p>
                <div class="jefk ftr">金额：<span>{$order['order_amount']}</span>元</div>
            </div>
            <div class="zfpt">
                <div class="zfk">
                    <p class="ptzf ftl" style="width: 84px;">平台支付：</p>
                    <foreach name="paymentList" item="v"  key="k">
                        <if condition="$v['code'] neq 'balance'">
                            <label>
                                <input name="pay_radio" type="radio" value="pay_code={$v['code']}" />
                                <img width="120" height="40" src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" alt=""/>
                            </label>
                        <else />
                            <assign name="show_balance" value="1" />
                        </if>
                    </foreach>

                    <if condition="$show_balance eq 1">
                        <p class="yezf ftl" style="clear:both; width: 84px;">余额支付：</p>
                        <label style="margin-top: 32px">
                            <input name="pay_radio" type="radio" value="pay_code=balance" />
                            <img  style="float:left;margin-top: 3px;margin-left: 10px" src="/Template/pc/kty/Static/images/spfk/spfk.png"alt=""/>
                            <span class="yezfspan ftl">余额支付{$user.user_money}</span>
                            <if condition="$user['user_money'] lt $order['order_amount']">
                                <span class="ftl yebz">提示：余额不足</span>
                            </if>
                        </label>
                        <a href=""><div class="cza ftl">充值</div></a>
                    </if>
                    <a href="javascript:$('#cart4_form').submit();"><div class="qrzf ftl">确认支付</div></a>
                </div>
            </div>
        </div>
        <input type="hidden" name="order_id" value="{$order['order_id']}" />
    </form>

    <div class="ftmg" style="margin-top: 75px;"></div>
    <!-- footer-开始 -->
    <include file="Public/footer" />
    <!-- footer-结束 -->

</body>
</html>
<script type="text/javascript">
    $(document).ready(function(){
         $("input[name='pay_radio']").first().trigger('click');
    });
</script>
